/* 统计页面样式 */

.statistics-container {
    padding: 1rem 0;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.period-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.date-selector {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.date-nav-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-speed);
}

.date-nav-btn:hover {
    color: var(--primary-color);
}

#current-period {
    padding: 0 1rem;
    font-weight: 500;
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stats-card-content {
    flex: 1;
}

.stats-card-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* 图表容器 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.chart-body {
    height: 300px;
    position: relative;
}

/* 洞察容器 */
.insights-container {
    margin-bottom: 2rem;
}

.insights-container h3 {
    margin-bottom: 1rem;
}

.insights-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.insight-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.insight-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.insight-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.insight-content {
    color: var(--text-light);
    line-height: 1.5;
}

.insight-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .insights-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .statistics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .date-range {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 